package com.chen.serviceprice.remote;

import com.chen.internalcommon.dto.ResponseResult;
import com.chen.internalcommon.request.ForecastPriceRequest;
import com.chen.internalcommon.response.DirectionResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author chenLiuPing
 **/
@FeignClient("service-map")
public interface ServiceMapClient {
    /**
     * 调用地图服务路径规划接口
     * @param forecastPriceRequest
     * @return
     */
    @GetMapping("/direction/driving")
    ResponseResult<DirectionResponse> driving(@RequestBody ForecastPriceRequest forecastPriceRequest);
}
